<script>
const arr = [1,  [undefined, [3, [4]]], 5, "string", { name: "弹铁蛋同学" }]
//1、concat+扩展运算符
let a = [].concat(...arr)

//2、concat + apply
let b = [].concat.apply([],arr)

</script>